package com.igeek.javase.ch04.canfly;

/*
 *@author wangpeng
 *2023/7/14 21:24
 *@description TODO
 */
public class Main {
    public static void makeFly(CanFly canFly){
        canFly.fly();
    }

    public static void main(String[] args) {
        CanFly bird = new Bird();
        CanFly airplane = new Airplane();

        makeFly(bird);
        System.out.println("+++++++++++++++");
        makeFly(airplane);
    }
}
